import {
  get,
  post,
  put,
  del,
  baseUrl
} from "../utils/request"
export const Apilogin = (params) => post("/api/doctor/login", params)


//查看进行中的订单
export const ApiinProgressOrder = (params) => get("/api/doctor/order/inProgressOrder", params)

//查看已完成订单
export const ApiinCompleteOrder = (params) => get("/api/doctor/order/completeOrder", params)


export const ApiGetMessageRecord = (data) => get("/api/doctor/order/messageRecord", data)

/* localhost:94/api/doctor/order/orderInfo/:orderId
 */
export const ApiGetOrderInfo = (id) => get("/api/doctor/order/orderInfo/" + id)

/* 退款 */
export const ApiRefund = (data) => post("/api/doctor/order/cancelOrder", data)

export const ApiEditUserInfo = (id, params) => post("/api/doctor/changeUserInfo/" + id, params)




export const ApiGetDoctorMedicineList = () => get("/api/user/medicine/medicineList")


// 开处方
export const ApisubmitDoctorAdvice = (data) => post("/api/doctor/order/doctorAdvice", data)


//处方单明细
export const ApiAdviceInfoByID = (id) => get("/api/doctor/order/adviceInfo/" + id)


export const ApiloginDoctor = (params) => post("/api/doctor/code2session", params)


//获取处方审核列表
export const ApiGetAdviceList = (params) => get("/api/doctor/order/adviceList", params)


//审核结果通过
export const ApiPostadviceReview = (data) => post("/api/doctor/order/adviceReview", data)

//设置接诊价格
export const ApiSetOrderPrice = (data) => post("/api/doctor/setOrderPrice", data)

//获取对应日期的信息
export const ApiScheduleInfo = (data) => get("/api/doctor/scheduleInfo", data)


//删除自主排班信息
export const ApiDelSchedule = (id) => del("/api/doctor/deleteSchedule/" + id)
/* localhost:94/api/doctor/deleteSchedule/:id */
//提交自主排班信息

export const ApiPostSchedule = (data) => post("/api/doctor/setSchedule", data)


export const ApiEditSchedule = (data) => post("/api/doctor/updateSchedule", data)


//诊疗记录
export const ApiGetOrderList = (data) => get("/api/doctor/orderList", data)

//获取消息分组

export const ApiGetGroupList = () => get("/api/doctor/group/groupList")
//添加分组
export const ApiAddGroupList = (data) => post("/api/doctor/group/addGroup", data)
//删除分组
export const ApiDelGroupList = (id) => del("/api/doctor/group/deleteGroup/" + id)
//修改分组
export const ApiUpdateGroupList = (id, data) => post("/api/doctor/group/updateGroup/" + id, data)
//分组
export const ApiChangeGroup = (data) => post("/api/doctor/group/changeGroup", data)

//添加病历
export const ApiCaseHistoryAdd = (data) => post("/api/doctor/caseHistory/add", data)


//病历查询11111
export const ApiCaseHistorySearch = (data) => get("/api/doctor/caseHistory/list", data)


//医生列表
export const ApiGetDepartmentDoctorList = (data) => get("/api/doctor/departmentDoctorList", data)



export const ApiPostOrderChangeDoctor = (data) => post("/api/doctor/order/orderChangeDoctor", data)

//localhost:94/api/doctor/order/orderChangeDoctor

//处方撤回
export const ApiAdviceRollback = (id) => post("/api/doctor/order/adviceRollback/" + id)

//获取处方列表
export const ApiAdminAdviceList = (data) => get("/api/doctor/order/adminAdviceList", data)
//获取处方模板列表
export const ApiGetAdviceTemplate = (data) => get("/api/doctor/adviceTemplate/list", data)
//我的收益
export const ApiGetMyIncome = (data) => get("/api/doctor/myIncome", data)
//接诊 
export const ApiJiezhenSetting = (data) => post("/api/doctor/jiezhenSetting", data)
//我的处方

export const ApiGetMyAdvice = (data) => get("/api/doctor/myAdvice", data)



//快捷用语
export const ApigetReplyTemplate = (data) => get('/api/doctor/replyTemplate/list', data) //立即备份
//添加
export const ApigetReplyTemplateCreate = (data) => post('/api/doctor/replyTemplate/create', data)
//修改
export const ApigetReplyTemplateUpdate = (id, data) => post('/api/doctor/replyTemplate/update/' + id, data)
//删除
export const ApigetReplyTemplateDelete = (id) => del('/api/doctor/replyTemplate/delete/' + id)

//会诊报告
export const ApiPostTeamReport = (data) => post('/api/doctor/order/teamReport', data)

//获取频次
export const getMedicineFrequencyData = (data) => get('/api/getMedicineFrequencyData', data)
//获取用法
export const getMedicineTakeTypeData = (data) => get('/api/getMedicineTakeTypeData', data)

//获取煎煮法
export const getJADataCN = (data) => get('/api/getJADataCN', data)
//获取中医疾病
export const getICDDataCN = (data) => get('/api/getICDDataCN', data)

export const getICDData = (data) => get("/api/getICDData", data)

export const ApiGetSet = () => get("/api/user/user/getSet2")

